package com.totobox.apps.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;

import com.totobox.apps.Const;
import com.totobox.apps.R;
import com.totobox.apps.common.MoveActivity;

public class TotoFileConfirmActivity extends BasicActivity {
	
	public TextView folder_name;
	public ImageButton btn_confirm_down;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.toto_file_confirm);
        
        super.initTitle();
        
        //하단 메뉴 세팅
        super.setFooterMenu(this);
        
        folder_name = (TextView)findViewById(R.id.folder_name);
        
        //VIDEO폴더 : VOD , IMAGE폴더 : IMG , MUSIC폴더 : AUD , DOCUMENT폴더 : ETC , PAUSE폴더 : PAU
        if("VOD".equals(Const.MENU)) folder_name.setText("[ 동영상 ]");
        else if("IMG".equals(Const.MENU)) folder_name.setText("[ 사진 ]");
        else if("AUD".equals(Const.MENU)) folder_name.setText("[ 음악 ]");
        else if("ETC".equals(Const.MENU)) folder_name.setText("[ 기타 ]");
        
        btn_confirm_down = (ImageButton)findViewById(R.id.btn_confirm_down);
        
        btn_confirm_down.setOnClickListener(this);
        
    }

	@Override
	public void onClick(View v) {
		
		if(btn_confirm_down == v){
			MoveActivity go = new MoveActivity(TotoFileConfirmActivity.this , FileDownExceuteActivity.class);
			go.startActivity(this);
		}
		
		if(btn_title_left == v)
			finish();
	}
    
    
}